package configs

var Instance *Config

type Config struct {
	Env  string
	Port string

	Logger struct {
		Filename   string
		MaxSize    int
		MaxAge     int
		MaxBackups int
	}

	DB DBConfig
}

type DBConfig struct {
	Url                       string `yaml:"Url"`
	MaxIdleConnect            int    `yaml:"MaxIdleConnect"`
	MaxOpenConnect            int    `yaml:"MaxOpenConnect"`
	ConnectMaxIdleTimeSecond  int    `yaml:"ConnectMaxIdleTimeSecond"`
	ConnectMaxLifeTimeSeconds int    `yaml:"ConnectMaxLifeTimeSeconds"`
}
